<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<h:form>
		<p:dataGrid var="comment" value="#{commentPage.commentList}"
			columns="1">
			<p:panel header="#{comment.username}" footer="#{comment.dateTime}"
				style="text-align:right">
				<h:panelGrid styleClass="commentPanel" columns="1">
					<p:column styleClass="commentTextColumn">
						<p:inputTextarea value="#{comment.comment}" disabled="true"
							styleClass="commentTextBox" style="width:500px"></p:inputTextarea>
					</p:column>
				</h:panelGrid>
			</p:panel>
		</p:dataGrid>
		<p:inputTextarea id="inputText" value="#{commentPage.newCommentText}" />
		<p:commandButton value="Submit"
			actionListener="#{commentPage.submitComment}" update=":formMenu" />
	</h:form>
</ui:composition>